package com.googlecode.jtoy.patterns.nullobject;

import java.util.Date;

/**
 * 空对象模式
 * 
 * @author shangxj
 * @date Jun 27, 2011 1:28:26 PM
 */
public interface Employee {

	public boolean isTimeToPay(Date date);

	public void pay();

	public static final Employee NULL = new Employee() {

		@Override
		public void pay() {

		}

		@Override
		public boolean isTimeToPay(Date date) {

			return false;
		}
	};;;

}
